package com.gao.mvc;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author GaoXi
 * @date 2022/2/28 19:43
 *
 */
@RestController
public class HelloController {


    @RequestMapping("test")
    public Person test(){
        return Person.builder().id(1L).name("高溪").build();
    }

}
